﻿using ServiceCore;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace Entity
{

    public class question_user_search 
    {
        [Description("disable")]
        /// <summary>
        /// 用户ID
        /// </summary> 
        public string question_uid { get; set; }
        [Description("创建时间")]
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime addtime { get; set; }
        [Description("员工编号")]
        /// <summary>
        /// 工号/员工编号
        /// </summary>  
        public string work_num { get; set; }
        [Description("员工姓名")]
        /// <summary>
        /// 昵称 
        /// </summary> 
        public string u_name { get; set; }
        [Description("disable")]
        /// <summary>
        /// 是否可用
        /// </summary>
        public bool isuse { get; set; }

        [Description("状态")]
        public string isuse_str { get { return isuse ? "启用" : "禁用"; } }
    }
    public class question_user
    {
        [Description("创建时间")]
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime addtime { get; set; }
        [Description("员工编号")]
        /// <summary>
        /// 工号/员工编号
        /// </summary>  
        public string work_num { get; set; } 
        [Description("员工姓名")]
        /// <summary>
        /// 昵称 
        /// </summary> 
        public string u_name { get; set; }
        [Description("disable")]
        /// <summary>
        /// 用户ID
        /// </summary> 
        public string question_uid { get; set; }
        [Description("disable")]
        /// <summary>
        /// 登录名
        /// </summary> 
        public string login_name { get; set; } 
        [Description("disable")]
        /// <summary>
        /// 登录密码
        /// </summary>
        public string login_pwd { get; set; } 
        [Description("disable")]
        /// <summary>
        /// 绑定的openid
        /// </summary>
        public string bindOpenid { get; set; }
        [Description("disable")]
        /// <summary>
        /// 绑定Unionid
        /// </summary>
        public string bindUnionid { get; set; }
        [Description("disable")]
        /// <summary>
        /// 联系电话
        /// </summary>
        public string link_phone { get; set; }
        [Description("disable")]
        /// <summary>
        /// 是否可用
        /// </summary>
        public bool isuse { get; set; }
        [Description("disable")]
        /// <summary>
        /// 头像
        /// </summary>
        public string headimg { get; set; }
        [Description("disable")]
        /// <summary>
        ///  备注
        /// </summary> 
        public string remark { get; set; }
 
        [Description("disable")]
        /// <summary>
        /// 所属商户
        /// </summary>
        public string baseuserid { get; set; }
    }



    public class user_search : Base_List_Params
    {
        
        public user_search_type? searchtype { get; set; }

        public string searchkey { get; set; }
        /// <summary>
        /// 性别 0未知 1男 2女 
        /// </summary>
        public int? sex { get; set; }
        /// <summary>
        /// 是否可用
        /// </summary>
        public bool? isuse { get; set; }
    }
    public enum user_search_type
    {
        姓名 = 0,
        编号 = 1,
    }
    /// <summary>
    ///  答题商品策略搜索条件
    /// </summary>
    public class question_strategy_search : Base_List_Params
    {
        /// <summary>
        /// 商品名称
        /// </summary>
        public string product_name { get; set; }
        /// <summary>
        /// 机器名称
        /// </summary>
        public string mch_name { get; set; }
        /// <summary>
        /// 设置题目数量
        /// </summary>
        public int? set_question_count { get; set; }
        /// <summary>
        /// 列表类型查询
        /// </summary>
        public question_strategy_type question_strategy_type { get; set; } = question_strategy_type.按商品;
    }
}
